import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {HomeGuardService} from '../../service/home.guard.service';
import {ForumComponent} from './forum.component';

const routes: Routes = [
  {path: '', component: ForumComponent, canActivate: [HomeGuardService]},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ForumRouterModule {
}
